From: Owen Taylor Date: Sat, 29 Nov 2008 21:11:31 +0000 (+0000) Subject: Bug 562633 – Use GNOME_SHELL_DISABLE_TFP environment variable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11548 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e0f713785fa19abf35a0672b97195c8a7f744516;p=gnome-shell.git Bug 562633 – Use GNOME_SHELL_DISABLE_TFP environment variable Allow forcing off the texture_for_pixmap extension by environment variable, since it is apparently buggy on old Intel cards with certain driver versions Based on patch from RainCT (Siegfried Gevatter) svn path=/trunk/; revision=92 --- diff --git a/scripts/launcher.py b/scripts/launcher.py index 45325ae7b..f893f03ec 100644 --- a/scripts/launcher.py +++ b/scripts/launcher.py @@ -41,6 +41,14 @@ class Launcher: """Starts gnome-shell. Returns a subprocess.Popen object""" use_tfp = self.use_tfp + + # Allow disabling usage of the EXT_texture_for_pixmap extension. + # FIXME: Move this to ClutterGlxPixmap like + # CLUTTER_PIXMAP_TEXTURE_RECTANGLE=disable. + if 'GNOME_SHELL_DISABLE_DISABLE_TFP' in os.environ and + os.environ['GNOME_SHELL_DISABLE_DISABLE_TFP'] != '': + use_tfp = False + if use_tfp: # Check if GLX supports GL_ARB_texture_non_power_of_two; currently clutter # can only use GLX_EXT_texture_for_pixmap if we have that extension.